"""
@author: niweinan
@file: Tree.py.py
@time: 2023/11/27 16:02
"""

import os

def tree(dir_path, num=1):
    for i in os.listdir(dir_path):
        i_path = os.path.join(dir_path, i)
        print('----' * num + i_path)
        if os.path.isdir(i_path):
             tree(i_path, num + 1)

curr = os.getcwd()
tree(curr)

